package com.laogao.lesson037.service;

import com.laogao.lesson037.common.service.IBaseService;
import com.laogao.lesson037.po.AccountPO;

import java.math.BigDecimal;

/**
 * <b>description</b>： Java进阶、性能优化实战案例100讲，微信公众号:程序员恰恰，源码 & 文档 & 技术支持，请加个人微信号：it3306 <br>
 * <b>time</b>： 19:08 <br>
 * <b>author</b>：ready lao_gao
 */
public interface IAccountService extends IBaseService<AccountPO> {

    /**
     * 减少账户余额
     *
     * @param accountId
     * @param price
     * @return
     */
    void balanceSubtract(String accountId, BigDecimal price);
}
